#pragma once
#include "editsession.h"
#include "EditSession.h"
#include "BasicTextService.h"

class CEndCompositionEditSession :
	public CEditSessionBase
{
public:
	 CEndCompositionEditSession(CTextService *pTextService, ITfContext *pContext) : CEditSessionBase(pTextService, pContext)
    {
    }

	 virtual ~CEndCompositionEditSession();
    // ITfEditSession
    STDMETHODIMP DoEditSession(TfEditCookie ec)
    {
        _pTextService->_TerminateComposition(ec,_pContext);
        return S_OK;
    }
};

